package com.sk.bilibili.mapper;

import com.sk.api.annotations.Mapper;
import com.sk.bilibili.bean.Coin;
import com.sk.bilibili.dto.Page;
import com.sk.bilibili.dto.Res;
import com.sk.bilibili.other.JsonMap;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;

@Mapper
public interface CoinMapper {

    @POST("coin/getCoinVideo")
    Observable<Res<Page<Coin>>> getCoinVideo(@Body JsonMap map);

    @POST("coin/add")
    Observable<Res<Void>> addCoin(@Body JsonMap map);

}